package com.cn.mmd.service;

import com.cn.mmd.mapper.CustomEvaluationMapper;
import com.cn.mmd.mapper.StudentCustomEvaluationMapper;
import com.cn.mmd.model.CustomEvaluation;
import com.cn.mmd.model.StudentCustomEvaluation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Administrator on 2016/11/29.
 */
@Service("studentCustomEvaluationService")
public class StudentCustomEvaluationServiceImpl implements StudentCustomEvaluationService {

    @Autowired
    private StudentCustomEvaluationMapper studentCustomEvaluationMapper;

    @Autowired
    private CustomEvaluationMapper customEvaluationMapper;
    @Override
    public int insertSelective(StudentCustomEvaluation record) {
        return studentCustomEvaluationMapper.insertSelective(record);
    }

    @Override
    public List<StudentCustomEvaluation> selectBy(StudentCustomEvaluation record) {
        return studentCustomEvaluationMapper.selectBy(record);
    }

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return studentCustomEvaluationMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int deleteByPrimaryKeyC(Integer customevaluationid) {
        return customEvaluationMapper.deleteByPrimaryKey(customevaluationid);
    }

    @Override
    public CustomEvaluation selectByPrimaryKeyC(Integer customevaluationid) {
        return customEvaluationMapper.selectByPrimaryKey(customevaluationid);
    }

    @Override
    public List<CustomEvaluation> selectAllByLikeNum(CustomEvaluation customEvaluation) {
        return customEvaluationMapper.selectAllByLikeNum(customEvaluation);
    }

    @Override
    public int updateByPrimaryKeySelective(CustomEvaluation record) {
        return customEvaluationMapper.updateByPrimaryKeySelective(record);
    }
}
